
import 'package:baby/UI/Pages/Account/AccountPage.dart';
import 'package:flutter/material.dart';

class ProfilePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return CustomScrollView(
      slivers: <Widget>[
        SliverAppBar(
          title: Text("مىنىڭ"),
          pinned: true,
          centerTitle: true,
          expandedHeight: 230.0,
          flexibleSpace: FlexibleSpaceBar(
            background: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                SizedBox(height: 60.0,),
                CircleAvatar(
                  radius: 64.0,
                  backgroundColor: Colors.white,
                  backgroundImage: NetworkImage("https://banner2.kisspng.com/20180509/zde/kisspng-avatar-youtube-8-ball-pool-user-5af328dc1be026.0480517715258851481142.jpg"),
                ),
                Text("خۇش كېلىپسىز پالانى")
              ],
            )
          ),
        ),
        SliverList(
          delegate: SliverChildListDelegate([
            RaisedButton(
              child: Text("Sign in"),
              onPressed: (){
                Navigator.of(context).push(MaterialPageRoute(builder: (context) => AccountPage()));
              },
            )
          ]),
        )
      ],
    );
  }
}
